﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using WestWorldRemake.Characters;
using WestWorldRemake.Messaging;

namespace WestWorldRemake
{
    class Program
    {
        private static int _i;
        public static int i
        {
            get
            {
                return _i;
            }
        }
        static int count = 2000;

        static void Main(string[] args)
        {
            LowlyMinion firstMinion = new Characters.LowlyMinion("Test", LocationType.HighRise);

            EntityManager mgr = EntityManager.Instance;
            mgr.RegisterEntity(firstMinion);

            for (_i = 0; i < count; _i++)
            {
                MessageDispatcher.Instance.DispatchDelayedMessages();
                mgr.Update();

                Thread.Sleep(50);
            }

            Console.Write("\n\nPress any key to continue... ");
            Console.ReadKey(false);
        }
    }
}
